<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:p="http://primefaces.org/ui">

<h:head>
	<f:view>
		<ui:include src="../topo.xhtml"></ui:include>
	</f:view>
</h:head>
<h:body>
	<h:outputStylesheet library="css" name="estilo.css" />
	<h:panelGroup rendered="#{sessaoMB.usuario.administrador}">
		<div class="container">
			<div class="navegacao">&nbsp;&nbsp;&nbsp; Inicio > Cadastro >
				Equipamento por Curso > Editar</div>

			<div class="conteudo">
				<div class="formCad">
					<h:form id="form">
						<p:growl showDetail="true"></p:growl>

						<h:outputLabel value="Curso &nbsp;"></h:outputLabel>
						<h:inputText value="#{editarEquipamentoPorCursoMB.codigoCurso}"
							readonly="true"></h:inputText>
						<p>&nbsp;</p>
						<h:outputLabel value="Equipamento &nbsp;"></h:outputLabel>
						<h:inputText
							value="#{editarEquipamentoPorCursoMB.codigoEquipamento}"
							readonly="true"></h:inputText>
						<p>&nbsp;</p>
						<h:outputLabel value="Quantidade disponivel &nbsp;"></h:outputLabel>
						<h:inputText
							value="#{editarEquipamentoPorCursoMB.quantidadeDisponivel}"
							id="quantidadeDisponivel" readonly="true"></h:inputText>
						<p>&nbsp;</p>
						<h:outputLabel value="Quantidade &nbsp;"></h:outputLabel>
						<h:inputText value="#{editarEquipamentoPorCursoMB.quantidade}"></h:inputText>
						<p>&nbsp;</p>
						<p:commandButton value="Editar"
							action="#{editarEquipamentoPorCursoMB.editar}" update="form"></p:commandButton>
					</h:form>
				</div>
			</div>
		</div>
		<div class="rodape">
			<ui:include src="/rodape.xhtml"></ui:include>
		</div>
	</h:panelGroup>
</h:body>
</html>